package unit_5;

public class Demo01 {
    public static void main(String[] args) {
        double[] a = {75, 53, 32, 12, 46, 199, 17, 54};
        java.util.Arrays.sort(a);
        System.out.println("最大值：" + a[a.length - 1]);
        System.out.println("最小值：" + a[0]);
        double sum = 0;
        for(double i : a){
            sum += i;
        }
        System.out.println("和：" + sum);
        System.out.println("平均值：" + sum / a.length);
    }
}
